package cool.houge.pig.service.webhook;

import lombok.Getter;

/**
 * Webhook 异常.
 *
 * @author KK (kzou227@qq.com)
 */
public class WebhookException extends RuntimeException {

  /** 回调地址. */
  @Getter private final String url;

  /**
   * 使用回调地址构建对象.
   *
   * @param url 回调地址
   */
  public WebhookException(String url) {
    this.url = url;
  }

  /**
   * @param url 回调地址
   * @param cause
   */
  public WebhookException(String url, Throwable cause) {
    super(cause);
    this.url = url;
  }
}
